<?php
function my_assert_handler($file, $line, $code)
{
    echo "<!--Assertion Failed:
        File '$file'<br />
        Line '$line'<br />
        Code '$code'<br />-->";
        throw new Exception('');
}

// Set up the callback
assert_options(ASSERT_CALLBACK, 'my_assert_handler');
?>